package com.huawei.hms.framework.network.restclient.hianalytics;

import com.huawei.hms.framework.network.restclient.hianalytics.RequestFinishedInfo.Metrics;
import com.huawei.hwCloudJs.d.d;
import java.util.ArrayList;
import java.util.List;

public class EditableMetrics extends Metrics {
    private final List<String> connectIps = new ArrayList();
    private int connectRetryTime = -1;
    private int dnsCache = -1;
    private String dnsType = d.b;
    private String protocol = d.b;
    private long requestByteCount = -1;
    private long responseByteCount = -1;
    private String successIp = "";

    public void setSuccessIp(String str) {
        this.successIp = str;
    }

    public void setProtocol(String str) {
        this.protocol = str;
    }

    public void setConnectRetryTime(int i) {
        this.connectRetryTime = i;
    }

    public void setRequestByteCount(long j) {
        this.requestByteCount = j;
    }

    public void setResponseByteCount(long j) {
        this.responseByteCount = j;
    }

    public void setDnsType(String str) {
        this.dnsType = str;
    }

    public void setConnectIps(List<String> list) {
        this.connectIps.addAll(list);
    }

    public void setDnsCache(int i) {
        this.dnsCache = i;
    }

    public void addConnectIps(String str) {
        this.connectIps.add(str);
    }

    public int getConnectRetryTime() {
        return this.connectRetryTime;
    }

    public long getRequestByteCount() {
        return this.requestByteCount;
    }

    public long getResponseByteCount() {
        return this.responseByteCount;
    }

    public String getDnsType() {
        return this.dnsType;
    }

    public String getProtocol() {
        return this.protocol;
    }

    public String getSuccessIp() {
        return this.successIp;
    }

    public List<String> getConnectIps() {
        return this.connectIps;
    }

    public int getDnsCache() {
        return this.dnsCache;
    }
}
